package com.blb.community.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.community.entity.SysDictData;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.community.entity.vo.DictDataVo;

import java.util.List;

/**
 * <p>
 * 字典数据表 服务类
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
public interface ISysDictDataService extends IService<SysDictData> {

    /**
     * 分页查询字典数据
     * @return
     */
    IPage<SysDictData> getAllSysDictData(IPage<SysDictData> page,DictDataVo dictDataVo);

    /**
     * 根据字典类型查询字典数据
     * @param dictType
     * @return
     */
    List<SysDictData> getSysDictDataByType(String dictType);

    /**
     * 分页查询
     * @return
     */
    IPage<SysDictData> selectSysDictDataByType(IPage<SysDictData> page,DictDataVo dictDataVo);

    /**
     * 逻辑删除
     * @param dictCode
     */
    void logicDeleteDictData(Long dictCode);
}
